Component({
    properties: {
        gooddatas: {
            type: null
        }
    },
    observers: {
        gooddatas: function(t) {
            if (t && t.description) {
                var a = t.description.replace(/<img/g, '<img style="width:100%"');
                this.setData({
                    description: a
                });
            }
        }
    },
    data: {
        show: !1,
        description: ""
    },
    methods: {
        showTap: function(t) {
            this.setData({
                show: !0
            });
        },
        showTapClose: function(t) {
            this.setData({
                show: !1
            });
        },
        goDetail: function(t) {
            if ("exchange" == t.currentTarget.dataset.key) {
                if (0 == this.data.gooddatas.is_pearl) return void wx.showToast({
                    title: "该商品您未累计拼中次数，还不能奖励".concat(this.data.gooddatas.love_plugin_name, "哦~"),
                    icon: "none",
                    duration: 2500
                });
                wx.navigateTo({
                    url: "/packageI/newGroup/redeem/redeem?id=" + this.data.gooddatas.id
                });
            } else wx.navigateTo({
                url: "/packageI/newGroup/zhpgroupDetail/zhpgroupDetail?id=" + this.data.gooddatas.group_id + "&action=2"
            });
        }
    }
});